package com.yhao.stock.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import javax.annotation.Nonnull;

/**
 * <p>
 * 
 * </p>
 *
 * @author yhao
 * @since 2023-11-30
 */
@ApiModel(value="FinanceInfo对象", description="")
@NoArgsConstructor
@AllArgsConstructor
public class FinanceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "代码")
    private String dCode;

    @ApiModelProperty(value = "名称")
    private String dName;

    @ApiModelProperty(value = "市盈率动")
    private BigDecimal peD;

    @ApiModelProperty(value = "市盈率静")
    private BigDecimal peJ;

    @ApiModelProperty(value = "市盈率TTM")
    private BigDecimal peTtm;

    @ApiModelProperty(value = "市净率")
    private BigDecimal pbRatio;

    @ApiModelProperty(value = "每股收益")
    private BigDecimal perIncome;

    @ApiModelProperty(value = "股息")
    private BigDecimal ttm;

    @ApiModelProperty(value = "全部股本")
    private BigDecimal totalEquity;

    @ApiModelProperty(value = "总市值")
    private BigDecimal totalMarketValue;

    @ApiModelProperty(value = "每股净资产")
    private BigDecimal perAssets;

    @ApiModelProperty(value = "股息率")
    private BigDecimal ttmRatio;

    @ApiModelProperty(value = "流通股")
    private BigDecimal circulateStock;

    @ApiModelProperty(value = "流通值")
    private BigDecimal circulateValue;

    @ApiModelProperty(value = "年最高")
    private BigDecimal yearHigh;

    @ApiModelProperty(value = "年最低")
    private BigDecimal yearLow;

    @ApiModelProperty(value = "注册制 1：是 0:否")
    private Integer register;

    @ApiModelProperty(value = "交易日期")
    private String dDate;

    @ApiModelProperty(value = "统计时间")
    private LocalDateTime statTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getdCode() {
        return dCode;
    }

    public void setdCode(String dCode) {
        this.dCode = dCode;
    }
    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }
    public BigDecimal getPeD() {
        return peD;
    }

    public void setPeD(BigDecimal peD) {
        this.peD = peD;
    }
    public BigDecimal getPeJ() {
        return peJ;
    }

    public void setPeJ(BigDecimal peJ) {
        this.peJ = peJ;
    }
    public BigDecimal getPeTtm() {
        return peTtm;
    }

    public void setPeTtm(BigDecimal peTtm) {
        this.peTtm = peTtm;
    }
    public BigDecimal getPbRatio() {
        return pbRatio;
    }

    public void setPbRatio(BigDecimal pbRatio) {
        this.pbRatio = pbRatio;
    }
    public BigDecimal getPerIncome() {
        return perIncome;
    }

    public void setPerIncome(BigDecimal perIncome) {
        this.perIncome = perIncome;
    }
    public BigDecimal getTtm() {
        return ttm;
    }

    public void setTtm(BigDecimal ttm) {
        this.ttm = ttm;
    }
    public BigDecimal getTotalEquity() {
        return totalEquity;
    }

    public void setTotalEquity(BigDecimal totalEquity) {
        this.totalEquity = totalEquity;
    }
    public BigDecimal getTotalMarketValue() {
        return totalMarketValue;
    }

    public void setTotalMarketValue(BigDecimal totalMarketValue) {
        this.totalMarketValue = totalMarketValue;
    }
    public BigDecimal getPerAssets() {
        return perAssets;
    }

    public void setPerAssets(BigDecimal perAssets) {
        this.perAssets = perAssets;
    }
    public BigDecimal getTtmRatio() {
        return ttmRatio;
    }

    public void setTtmRatio(BigDecimal ttmRatio) {
        this.ttmRatio = ttmRatio;
    }
    public BigDecimal getCirculateStock() {
        return circulateStock;
    }

    public void setCirculateStock(BigDecimal circulateStock) {
        this.circulateStock = circulateStock;
    }
    public BigDecimal getCirculateValue() {
        return circulateValue;
    }

    public void setCirculateValue(BigDecimal circulateValue) {
        this.circulateValue = circulateValue;
    }
    public BigDecimal getYearHigh() {
        return yearHigh;
    }

    public void setYearHigh(BigDecimal yearHigh) {
        this.yearHigh = yearHigh;
    }
    public BigDecimal getYearLow() {
        return yearLow;
    }

    public void setYearLow(BigDecimal yearLow) {
        this.yearLow = yearLow;
    }
    public Integer getRegister() {
        return register;
    }

    public void setRegister(Integer register) {
        this.register = register;
    }
    public String getdDate() {
        return dDate;
    }

    public void setdDate(String dDate) {
        this.dDate = dDate;
    }
    public LocalDateTime getStatTime() {
        return statTime;
    }

    public void setStatTime(LocalDateTime statTime) {
        this.statTime = statTime;
    }

    @Override
    public String toString() {
        return "FinanceInfo{" +
        "id=" + id +
        ", dCode=" + dCode +
        ", dName=" + dName +
        ", peD=" + peD +
        ", peJ=" + peJ +
        ", peTtm=" + peTtm +
        ", pbRatio=" + pbRatio +
        ", perIncome=" + perIncome +
        ", ttm=" + ttm +
        ", totalEquity=" + totalEquity +
        ", totalMarketValue=" + totalMarketValue +
        ", perAssets=" + perAssets +
        ", ttmRatio=" + ttmRatio +
        ", circulateStock=" + circulateStock +
        ", circulateValue=" + circulateValue +
        ", yearHigh=" + yearHigh +
        ", yearLow=" + yearLow +
        ", register=" + register +
        ", dDate=" + dDate +
        ", statTime=" + statTime +
        "}";
    }

    public FinanceInfo(String dCode, String dName, BigDecimal peD, BigDecimal peJ, BigDecimal peTtm, BigDecimal pbRatio, BigDecimal perIncome, BigDecimal ttm, BigDecimal totalEquity, BigDecimal totalMarketValue, BigDecimal perAssets, BigDecimal ttmRatio, BigDecimal circulateStock, BigDecimal circulateValue, BigDecimal yearHigh, BigDecimal yearLow, Integer register, String dDate, LocalDateTime statTime) {
        this.dCode = dCode;
        this.dName = dName;
        this.peD = peD;
        this.peJ = peJ;
        this.peTtm = peTtm;
        this.pbRatio = pbRatio;
        this.perIncome = perIncome;
        this.ttm = ttm;
        this.totalEquity = totalEquity;
        this.totalMarketValue = totalMarketValue;
        this.perAssets = perAssets;
        this.ttmRatio = ttmRatio;
        this.circulateStock = circulateStock;
        this.circulateValue = circulateValue;
        this.yearHigh = yearHigh;
        this.yearLow = yearLow;
        this.register = register;
        this.dDate = dDate;
        this.statTime = statTime;
    }
}
